#!/bin/bash
# Replaces a word in a file with Multiple line replacement

R=`cat Replacement.txt`
#echo $R

#echo "sed -e "s/$r/$uuidCPP/g" -e "s/$iIIDValue/$uuidIID/g" tdd/src/data/test.tdd > tdd/src/data/test.tmp"
#sedCmd="sed -e 's/$cppValue/$uuidCPP/g' -e 's/$iidValue/$uuidIID/g' tdd/src/data/test.tmp > tdd/src/data/test.tdd"
#eval $sedCmd

#sed script uses 'single quotes' instead of "double quotes." Unix shells never expand $variables in single quotes.
sed -e "s/CAAOsmSquare/$R/g" replace.txt > replace.out.txt
cat replace.out.txt
#sed -e "s/${i}Value/$uuidCPP/g" -e "s/${i}IIDValue/$uuidIID/g" tdd/src/data/test.tdd > tdd/src/data/test.tmp

